package generic;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * Created by butterfly on 2018/6/13.
 */
public class C<T extends Number & Serializable> {//形参上限可以设置多个


    void add(T t){
        System.out.println(t.toString());
        List<String> list =  new ArrayList<>();


    }

}
